﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace TWPure.API.Controllers
{
    /// <summary>
    /// Gust来宾访问
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    [Authorize("Gust")]
    public class GustController : ControllerBase
    {
        /// <summary>
        /// 测试接口,用于验证权限(Gust)
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [HttpGet]
        [Route("GetGust")]

        public string GetGust(string id)
        {
            return id;
        }

    }
}